package com.dindang.propertyfee.mvp.model.entity;

import org.w3c.dom.Node;

import java.util.List;

/**
 * Created by cxw on & 2018/11/8
 */
public class Build {
    public String buildid;
    public String build;
    public String custid;
    public String custname;
    public String ctustphone;
    public boolean isSelect;

    public Build() {
    }

    public Build(String buildid, String build) {
        this.buildid = buildid;
        this.build = build;
        this.isSelect = false;
    }

    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    /**
     * 查询权限小区
     */
    public static class BuildParam {
        public String isAdmin;
        public String cId;
        public String corpId;

        public BuildParam(String isAdmin, String cId, String corpId) {
            this.isAdmin = isAdmin;
            this.cId = cId;
            this.corpId = corpId;
        }

        public void setIsAdmin(String isAdmin) {
            this.isAdmin = isAdmin;
        }

        public void setcId(String cId) {
            this.cId = cId;
        }

        public void setCorpId(String corpId) {
            this.corpId = corpId;
        }

        public String getIsAdmin() {
            return isAdmin;
        }

        public String getcId() {
            return cId;
        }

        public String getCorpId() {
            return corpId;
        }
    }

    /**
     * 权限小区
     */
    public static class Building {
        public String id;
        public String name;// 小区名
        public List<String> content;
        public String key;
        public String pinyin;  //全拼
        public String first;   //首字母
        public String cityCode;
        public boolean isSelect;

        public Building() {
        }

        public Building(String name, String key) {
            this.name = name;
            this.key = key;
        }

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public void setKey(String key) {
            this.key = key;
        }

    }

    /**
     * 查询权限小区
     */
    public static class NodesParam {
        public String cCorpid;
        public String cNodecode;
        public String lv;

        public void setNodesParam(String cCorpid, String cNodecode) {
            this.cCorpid = cCorpid;
            this.cNodecode = cNodecode;
            this.lv = "1";
        }
    }

    public static class Nodes {
        public int lv;
        public int id;
        public int mId;
        public int mPid;
        public String text;
        public String hasSon;
        public String isEnd;
        public boolean isSelect;
        public boolean isNext;
        public List<Nodes> list;

        public void setSelect(boolean select) {
            isSelect = select;
        }

        public void setList(List<Nodes> list) {
            this.list = list;
        }

        public List<Nodes> getList() {
            return list;
        }

        public boolean hasSon(){
            if("1".equals(hasSon)){
                return true;
            }
            return false;
        }
    }

    public static class NodesSingle {
        public int id;
        public int pid;
        public String name;
        public List<NodesSingle> list;

        public NodesSingle(int id, int pid, String name) {
            this.id = id;
            this.pid = pid;
            this.name = name;
        }

        public List<NodesSingle> getList() {
            return list;
        }

        public void setList(List<NodesSingle> list) {
            this.list = list;
        }
    }

}
